package com.blb.zy_community.service.impl;

import com.blb.zy_community.entity.SysArea;
import com.blb.zy_community.mapper.SysAreaMapper;
import com.blb.zy_community.service.ISysAreaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 区域表 服务实现类
 * </p>
 *
 * @author 二组
 * @since 2023-06-18
 */
@Service
public class SysAreaServiceImpl extends ServiceImpl<SysAreaMapper, SysArea> implements ISysAreaService {
    @Autowired
    private SysAreaMapper sysAreaMapper;
    @Override
    public List<SysArea> selectChildAreaTreeByParentId(Long parentId) {
        return sysAreaMapper.selectChildAreaTreeByParentId(parentId);
    }
}
